package org.example.campus_sys_backend.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.campus_sys_backend.model.UnitInfo;

@Mapper
public interface UnitInfoMapper {
    @Insert("insert into unit (title, doc_path, video_path, unit_introduce, father_id, is_chpt," +
            " learning_score, course_id) values (#{title}, #{docPath}, #{videoPath}, #{unitIntroduce}," +
            "#{fatherId}, #{isChpt}, #{learningScore}, #{courseId})")
    Integer insertUnit(UnitInfo unitInfo);

}
